<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
	<body>
		<f:view>
			<ui:component id="listAllProducts">
				<rich:scrollableDataTable id="listAllproductsTable" var="product" value="#{products}"
					selection="#{listAllTable.selection}">
					<rich:column id="icon">
						<f:facet name="header">
							<h:outputText value="" />
						</f:facet>
						<h:graphicImage height="40px" width="40px" value="#{product.iconURL}" title="#{product.description}" />
					</rich:column>
					<rich:column id="name">
						<f:facet name="header">
							<h:outputText styleClass="headerText" value="name" />
						</f:facet>
						<h:outputText value="#{product.name}" />
					</rich:column>
					<f:facet name="footer">
						<a4j:region>
							<center>
								<a4j:commandButton value="Editar Selecionados" reRender="listAllproductsTable"
									action="#{listAllTable.takeSelected}" oncomplete="javascript:Richfaces.showModalPanel('#{modalPanel}');"
									status="statusEditProduct" rendered="#{userLogin.logged}" />
								<br />
								<a4j:status id="statusEditProduct" startText="#{startText}" stopText="#{stopText}" />
							</center>
						</a4j:region>
					</f:facet>
				</rich:scrollableDataTable>
			</ui:component>
		</f:view>
	</body>
</html>
